package com.db
import java.sql.*;
import groovy.sql.Sql
class ZuAADB {
	
	static main(args) {
		ZuAADB.Mysql ("", "root", "aaaaaaaa").eachRow("select * from test"){println it.id }
		
	}
	
	
	static Mysql(ip,user,psw){
		return Sql.newInstance("jdbc:mysql://"+ip+"/test", user,psw, "com.mysql.jdbc.Driver")
	}
	
	
	
	
}
